package com.sanuo.pico.event;

import com.sanuo.pico.App;
import com.sanuo.pico.R;

public class VbEvent extends Co2IntEvent {

    public boolean is532() {
        return is532(getValue());
    }

    public static boolean is532(int i) {
        switch (i) {
            case 22:
            case 20:
            case 1:
            case 17:
            case 18:
                return true;
        }
        return false;
    }

    public boolean is1064() {
        return is1064(getValue());
    }

    public static boolean is1064(int i) {
        switch (i) {
            case 21:
            case 19:
            case 4:
                return true;
        }
        return false;
    }

    public String get1064Name() {
        return get1064Name(getValue());
    }

    public static String get1064Name(int i) {
        switch (i) {
            case 21:
            case 22:
                return App.getApp().getString(R.string.frac1064);
            case 19:
            case 20:
                return App.getApp().getString(R.string.honey1064);
            default:
                return App.getApp().getString(R.string.nm1064);
        }
    }

    public String get532Name() {
        return get532Name(getValue());
    }

    public static String get532Name(int i) {
        switch (i) {
            case 21:
            case 22:
                return App.getApp().getString(R.string.frac532);
            case 19:
            case 20:
                return App.getApp().getString(R.string.honey532);
            case 17:
                return App.getApp().getString(R.string.nm585);
            case 18:
                return App.getApp().getString(R.string.nm650);
            default:
                return App.getApp().getString(R.string.nm532);
        }
    }

    public static String getName(int i) {
        if (is532(i)) {
            return get532Name(i);
        } else if (is1064(i)) {
            return get1064Name(i);
        }
        return "--";
    }

    public boolean is585Or650() {
        return getValue() == 17 || getValue() == 18;
    }
}
